{include file="Public:header2"/}
<html style="height: 100%">

<body style="min-height: 100%;background-color: #fff">

<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-md12">
            <div class="layui-card">
                <div class="layui-card-body">
                    <form onsubmit="return false;" style="margin-left: -42px">
                        <div class="layui-form" wid100 lay-filter="">
                            <div class="layui-form-item">
                                <label class="layui-form-label">订单号</label>
                                <div class="layui-input-block">
                                    <input type="text" disabled value="{$info.order_no}" autocomplete="off" class="layui-input">
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">物流公司</label>
                                <div class="layui-input-block">
                                    <input type="text" name="delivery_name" placeholder="请输入物流公司" autocomplete="off" class="layui-input">
                                </div>
                            </div>                            
                            <div class="layui-form-item">
                                <label class="layui-form-label">物流单号</label>
                                <div class="layui-input-block">
                                    <input type="text" name="delivery_no" placeholder="请输入订单号" autocomplete="off" class="layui-input">
                                </div>
                            </div>
                            <div class="layui-form-item" style="margin-top: 30px;margin-left: 20px">
                                <div class="layui-input-block">
                                    <input type="hidden" value="{$info.id}" name="id">
                                    <button class="layui-btn" onclick="return check()">确认保存</button>
                                </div>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
{include file="Public:footer"/}
</body>
</html>
<script type="text/javascript">
    layui.use(['layer','form'], function(){

    });

    function check(){
        var $ = layui.$;
        var url="{:url('/admin/kk_send_order_deliver')}";
        var load=layer.load(2);
        $.post(url,$("form").serialize(),function(data){
            if(data.status==1){
                layer.msg(data.msg,{icon:1,time:1500},function(){
                    var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
                    parent.layer.close(index);
                    parent.location.reload();
                });
            }else{
                layer.msg(data.msg,{icon:2,time:1500});
                layer.close(load);
            }
        })
    }
</script>
